import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
export function getToken() {
	if(!window.localStorage.getItem("islogin")){

  		return window.localStorage.getItem("token")

	}else{
		return false
	}
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
